|
|
 |
|
|
|
|
Dim xoff1 As Single
Dim yoff1 As Single
Dim zoff1 As Single
Dim xoff2 As Single
Dim yoff2 As Single
Dim zoff2 As Single
Dim x1 As Single
Dim y1 As Single
Dim z1 As Single
Dim x2 As Single
Dim y2 As Single
Dim z2 As Single
Set ThePolyline = New Polyline3d
' Create the translated images of the curve. For i = 1 To NumPathPts
' Calculate offsets for this path point. xoff1 = PathPoints(i).coord(1) - _
PathPoints(1) .coord(1)
yoff1 = PathPoints(i).coord(2) - _
PathPoints(1).coord(2)
zoff1 = PathPoints(i).coord(3) - _
PathPoints(1) .coord(3)
x1 = CurvePoints(1).coord(1) + xoff1
y1 = CurvePoints(1).coord(2) + yoff1
z1 = CurvePoints(1).coord(3) + zoff1
For j = 2 To NumCurvePts
x2 = CurvePoints(j).coord(1) + xoff1
y2 = CurvePoints(j).coord(2) + yoff1
z2 = CurvePoints(j).coord(3) + zoff1
ThePolyline.AddSegment x1, y1, z1, x2, y2, z2
x1 = x2
y1 = y2
z1 = z2
Next j
Next i
' Create the translated images of the path. xoff1 = PathPoints(1).coord(1) - PathPoints(1).coord(1)
yoff1 = PathPoints(1).coord(2) - PathPoints(1).coord(2)
zoff1 = PathPoints(1).coord(3) - PathPoints(1).coord(3)
For i = 2 To NumPathPts
' Calculate offsets for this path point. xoff2 = PathPoints(i).coord(1) - _
PathPoints(1) .coord(1)
yoff2 = PathPoints(i).coord(2) - _
PathPoints(1).coord(2) |
|
|
|
|
|